<div class="messages">
	<ul>
		<? foreach($messages AS $k=>$v){ ?>
		<li><?= $k ?>
			<ul>
				<? foreach($v AS $msg){ ?>
				<li><?= $msg ?></li>
				<? } ?>
			</ul>
		</li>
		<? } ?>
	</ul>
</div>
<script type="text/javascript">
	$('.messages').dialog({modal: true,title: 'Сообщения CMS',width: '600'});
</script>